package study02;
import java.util.Scanner;

/**
* @author GZQ
* @Date 2023/11/5
 */

//信息验证
public class LoginVerification {
    public static void main(String[] args) {
        Scanner input  = new Scanner(System.in);
        String user = "zyj";
        String pwd1 = "zyj";
        System.out.println("请输入用户名：");
        String name = input.next();
        System.out.println("请输入密码：");
        String pwd = input.next();
        if(name.equals(user) && (pwd.equals(pwd1))){
            System.out.println("登陆成功");
        }else{
            System.out.println("登陆失败");
        }
    }
}
